// 投喂作业
import request from "@/api/index"
export default {

    /**
* @description: NC投喂作业（材料出库单）-添加 *代表必填
* @param {Object} params *
* @return {Object}
*/
    add(params) {
        const url = "base/ncFeedWork/add"
        return request.post(url, params)
    },
    
    edit(params) {
        const url = "base/ncFeedWork/edit"
        return request.post(url, params)
    },
    
    add_nc(params) {
        const url = "nc/business/ic/materialout/save"
        return request.post(url, params)
    },
    queryPageByCondition_nc(params) {
        const url = "nc/billQuery/queryMaterialHTwzp"
        return request.post(url, { ...params })
    },
    /**
* @description: 投喂作业-分页查询 *代表必填
* @param {Object} params *
* @return {Object}
*/
    queryPageByCondition(params) {
        const url = "base/ncFeedWork/queryPageByCondition"
        return request.post(url, { ...params })
    },

    /**
* @description: NC投喂作业（材料出库单）-查看明细 *代表必填
* @param {Object} params *
* @return {Object}
*/
    queryDtl(params) {
        const url = "base/ncFeedWork/queryDtl"
        return request.get(url, params)
    },
    queryDtl_nc(params) {
        const url = "nc/billQuery/queryMaterialBTwzp"
        return request.get(url, params)
    },

    /**
* @description: NC投喂作业（材料出库单）-编号删除 *代表必填
* @param {number} id *
* @return {Object}
*/
    delById(id) {
        const url = `base/ncFeedWork/delById?id=${id}`
        return request.get(url)
    },

    /**
* @description: NC投喂作业（材料出库单）-编号批量删除 *代表必填
* @param {Object} params *
* @return {Object}
*/
    delListById(params) {
        const url = `base/ncFeedWork/delListById?idList=${params}`
        return request.get(url)
    },

}